//
//  GroupView.swift
//  SwiftUIDemo
//
//  Created by zuosong on 2019/11/4.
//  Copyright © 2019 Kael. All rights reserved.
//

import SwiftUI

struct GroupView: View {
    var body: some View {
        
        VStack {
            Spacer()
                .frame(width: 10, height: 10, alignment: .center)
            HStack {
                VStack {
                    Text("我欲乘风归去")
                        .foregroundColor(.green)
                    Text("又恐琼楼玉宇")
                        .foregroundColor(.orange)
                }
                Spacer()
            }
            
            ImageView()
                .offset(x:40 ,y: -140)
                .padding(.bottom, -140)
                .padding(.leading, 40)

            
            HStack {
                Text("仰天大笑出门去,")
                Spacer()
                    .frame(width: 10, height: 10, alignment: .leading)
                Text("我辈岂是蓬蒿人")
            }
                .foregroundColor(.pink)
                .frame(width: 320, height: 20, alignment: .center)
        }
        
        .frame(width: 320, height: 150, alignment: .top)
        .edgesIgnoringSafeArea(.top)
        
    }
}

struct GroupView_Previews: PreviewProvider {
    static var previews: some View {
        GroupView()
    }
}
